home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
MAXMEM__
/
MAXAPPLZ.C
next >
Wrap
Text File
|
1988-11-06
|
1KB
|
32 lines
/* MaxApplZone.simple.c */
/* ==================================================================== */
/* very basic HyperCard memory management function */
/* ⌐ Copyright 1988 Sam Thornton, PO Box 123, Fairfield, NE 68938-0123 */
/* May be copied & distributed without charge only. Not for commercial */
/* sale or resale. */
/* Written in LSC 3.01 11/2/88 - some portions ⌐ by Symantec */
/* ==================================================================== */
#include "HyperXCmd.h"
#include "SetUpA4.h"
#include "MemoryMgr.h"
#include "unix.h" /* make sure you also include <unixst2d.c> in PROJ */
pascal void main (paramPtr)
XCmdBlockPtr paramPtr;
{
Size grow;
RememberA0();
SetUpA4();
if (paramPtr->paramCount >= 1) { /* if any param, compact memory */
MaxMem(&grow);
MaxApplZone();
}
paramPtr->returnValue = NewHandle(10);
stci_d(*paramPtr->returnValue,(TheZone->zcbFree / 1024),9);
RestoreA4();
return;
}